using System;
using System.Text;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using LeadTracker.Models;

namespace LeadTracker.Models.Tests.Generated
{
	public partial class LeadTokenTests
	{

		[TestMethod]
		public void SimpleMemoryLeak()
		{
            var objectUnderTest = CreateObject();
            var wr = new WeakReference(objectUnderTest);

            //release strong references
            objectUnderTest = null;
            GC.Collect();
            GC.WaitForPendingFinalizers();
            GC.Collect();

            //verify the object was collected
            Assert.IsFalse(wr.IsAlive);
		}



	}
}
